package com.example.demo.TakeMaterial.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.TakeMaterial.entity.OutForm;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OutFormMapper extends BaseMapper<OutForm> {
    @Select("SELECT * FROM `out_form` WHERE DATE_FORMAT(out_date, '%Y%m')" +
            " = DATE_FORMAT(CURDATE(), '%Y%m')")
    List<OutForm> selectThisMonth();
}
